package character.sprite.model;

import java.awt.image.BufferedImage;

import session.SharableObject;

import character.sprite.gui.CharacterSpriteAnimator;

public class CharacterStyle extends SharableObject {

	private BufferedImage image;
	private String formalName, type;

	public CharacterStyle(BufferedImage image, String formalName, String type) {
		super();
		this.type = type;
		this.image = image;
		this.formalName = formalName;
	}

	public BufferedImage getThumbnailImage() {
		return this.getFullImage().getSubimage(0,
				CharacterSpriteAnimator.SPRITE_HEIGHT * 2,
				CharacterSpriteAnimator.SPRITE_WIDTH,
				CharacterSpriteAnimator.SPRITE_HEIGHT);
	}

	public BufferedImage getFullImage() {
		return image;
	}

	public String getFormalName() {
		return formalName;
	}

	public String getType() {
		return type;
	}

}
